package com.dong;

import java.util.*;

/**
 * @program: javase
 * @description:
 * @author: lld
 * @create: 2021-03-05 16:54
 **/
public class Demo2{
    static{
        int x=5;
    }
    static int x,y;
    public static void main(String args[]){
        x--;
        myMethod( );
        System.out.println(x+y+ ++x);
        TreeSet<Integer> set=new TreeSet<>();
        set.add(1);
        set.add(1);
        set.add(5);
//        set.add(3);
        System.out.println(set.floor(2));
        System.out.println(set.ceiling(2));
        set.remove(1);
        System.out.println(set.size());
        List<Integer> list=new ArrayList<>();

    }


    public static void myMethod( ){
        y=x++ + ++x;
    }
}

